package com.puman.service.impl;

import java.util.List;

import javax.annotation.Resource;
import javax.transaction.Transactional;

import org.springframework.stereotype.Service;

import com.core.BaseServiceImpl;
import com.puman.bean.Auction;
import com.puman.bean.Competitive;
import com.puman.bean.CompetitiveView;
import com.puman.dao.CompetitiveDao;
import com.puman.service.CompetitiveService;

@Service("competitiveService")
@Transactional
public class CompetitiveServiceImpl extends BaseServiceImpl<Competitive, CompetitiveDao> implements CompetitiveService {

	@Resource
	private CompetitiveDao competitiveDao;

	@Override
	public List<Competitive> getList(Integer supplier_id) {
		return competitiveDao.getList(supplier_id);
	}

	@Override
	public List<Auction> getAuctionList(Integer supplier_id) {
		return competitiveDao.getAuctionList(supplier_id);
	}

	@Override
	public List<Competitive> getListLike(Integer supplier_id, String name) {
		return competitiveDao.getListLike(supplier_id,name);
	}
}
